package net.ericaro.neojavagen.expressions;

/**
 * <b>QuestionMarkConditionalExpression</b> ::= <{@link net .ericaro .neojavagen .expressions .ConditionalOrExpression ConditionalOrExpression}> "?" <
 * {@link net .ericaro .neojavagen .expressions .Expression Expression}> ":" <{@link net .ericaro .neojavagen .expressions .ConditionalExpression
 * ConditionalExpression}>
 * 
 * @author eric@ericaro.net
 */
public class QuestionMarkConditionalExpression extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.expressions.ConditionalExpression {
	private net.ericaro.neojavagen.expressions.ConditionalExpression conditionalExpression;

	private net.ericaro.neojavagen.expressions.ConditionalOrExpression conditionalOrExpression;

	private net.ericaro.neojavagen.expressions.Expression expression;

	public QuestionMarkConditionalExpression(net.ericaro.neojavagen.expressions.ConditionalOrExpression conditionalOrExpression, net.ericaro.neojavagen.expressions.Expression expression, net.ericaro.neojavagen.expressions.ConditionalExpression conditionalExpression) {
		super();
		this.conditionalOrExpression = conditionalOrExpression;
		this.expression = expression;
		this.conditionalExpression = conditionalExpression;
	}

	public net.ericaro.neojavagen.expressions.ConditionalExpression getConditionalExpression() {
		return conditionalExpression;
	}

	public net.ericaro.neojavagen.expressions.ConditionalOrExpression getConditionalOrExpression() {
		return conditionalOrExpression;
	}

	public net.ericaro.neojavagen.expressions.Expression getExpression() {
		return expression;
	}

	public void setConditionalExpression(net.ericaro.neojavagen.expressions.ConditionalExpression conditionalExpression) {
		this.conditionalExpression = conditionalExpression;
	}

	public void setConditionalOrExpression(net.ericaro.neojavagen.expressions.ConditionalOrExpression conditionalOrExpression) {
		this.conditionalOrExpression = conditionalOrExpression;
	}

	public void setExpression(net.ericaro.neojavagen.expressions.Expression expression) {
		this.expression = expression;
	}

	@Override
	public java.lang.String toString() {
		return print(conditionalOrExpression, "?", expression, ":", conditionalExpression);
	}
}
